<?php
  require("template.php");
  require("lang.php");
  require("math.php");
  $tpl = new template("index");
  $add = array("version"=>"0.1");
  $style = array("style"=>"<style type='text/css'>body{font-family:arial}</style>");
  $vars = $lang["de"] + $style + $add;
  $tpl->buildsite($vars);
        if($_POST["tv"] && $_POST["tb"])
      {
         $additional = teilermenge($_POST["tv"],$_POST["tb"]);
         $tpl->addc("<br>".$additional);
      }
        if($_POST["pv"] && $_POST["pb"])
      {
         $additional = primes($_POST["pv"],$_POST["pb"]);
         $tpl->addc("<br>".$additional);
      }
  $tpl->display();